package com.imooc.service;

import com.imooc.dto.address.*;
import com.imooc.pojo.UserAddress;

/**
 * @ClassName: IAddressService
 * @Description: 地址相关 Service 接口
 * @author: limingxing
 * @Date: 2019-12-25 10:41
 */
public interface IAddressService {

    /**
     * 新增用户地址
     * @param request
     */
    AddAddressResponse createAddress(AddAddressRequest request);

    /**
     * 删除用户地址
     * @param request
     * @return
     */
    DeleteAddressResponse deleteAddress(DeleteAddressRequest request);

    /**
     * 用户修改地址
     * @param request
     * @return
     */
    UpdateAddressResponse updateAddress(UpdateAddressRequest request);

    /**
     * 修改默认地址
     * @param request
     * @return
     */
    UpdateAddressResponse updateAddressToBeDefault(UpdateAddressDefaultRequest request);
    /**
     * 获取用户地址列表
     * @param request
     * @return
     */
    AddressListResponse getAddressList(AddressListRequest request);

    /**
     * 根据用户id和地址id，查询具体的用户地址对象信息
     * @param request
     * @return
     */
    QueryAddresResponse queryAddres(QueryAddresRequest request);

}
